<?php
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// Ricardo Galli <gallir at uib dot es>.
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
// 		http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".
if($_POST['xmlhttp']){
	include_once('Smarty.class.php');
	$main_smarty = new Smarty;
	
	include('config.php');
	include(mnminclude.'html1.php');
	include(mnminclude.'ts.php');
	include_once(mnminclude.'link.php');
	include_once(mnminclude.'comment.php');
	include_once(mnminclude.'hunt.php');
	include(mnminclude.'tags.php');
	include(mnminclude.'smartyvariables.php');
	
	$linkid = strip_tags($_POST['linkid']);
	$newhunt = new Hunt();
	$newhunt->linkid = $linkid;
	$newhunt->read();
	$info = $newhunt->add_apply(strip_tags($_POST['userid']));
	
	header('Content-Type: text/plain; charset=UTF-8');
	//echo $info;
	echo ('success:');
	die();
}



?>
